<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>天院美食</title>
<link rel="stylesheet" href="${basePath}/css/main.css" type="text/css" />
</head>
<script type="text/javascript">

</script>
<body class="main">
	<jsp:include page="${basePath}/head.jsp" />
	<jsp:include page="${basePath}/menu_search.jsp" />
	<div id="divpagecontent">
		<form id="formId" action="${pageContext.request.contextPath}/product/addCar.action" method="post">
			<input type="hidden" name="id" value="${qhyProduct.id}">
			<table width="100%" border="0" cellspacing="0">
			<tr>
				<td><div style="text-align:right; margin:5px 10px 5px 0px">
					<a href="${basePath}/index.jsp">首页</a>&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;<a
						href="#">&nbsp;天河学院</a>&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;THXY
				</div>
					<table cellspacing="0" class="infocontent">
						<tr>
							<td><img src="${basePath}/images/carhead.jpg" width="645" height="84" />

								<table width="100%%" border="0" cellspacing="0">
									<tr>
										<td width="30%">
											<div class="divbookcover">
												<p>
													<img src="${basePath}/${qhyProduct.img_url}"
														 width="213" height="269" border="0" />
												</p>
											</div>
											<div style="text-align:center; margin-top:25px">
												<a href="javascript:void(0)" onclick="addCart()">
													<img src="${basePath}/images/buybutton.gif" border="0"  />
												</a>
											</div>
										</td>
										<td style="padding:20px 5px 5px 5px"><img
												src="${basePath}/images/miniicon3.gif" width="16" height="13" /><font
												class="bookname">&nbsp;&nbsp;QHY_original</font>

											<hr />售价：<font color="#FF0000">${qhyProduct.price}</font>
											<hr /> 类别：${qhyProduct.category}
											<div style="border-bottom: 1px solid #faeac7;margin-top:20px;padding-left: 10px;">购买数量:
												<input id="quantity" name="count" value="1" maxlength="4" size="10" type="text">
											</div>
											<p>
												<b>内容简介：${qhyProduct.description}</b>
											</p> 天院美食
										</td>
									</tr>
								</table>
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
		</form>
	</div>
	<jsp:include page="${basePath}/foot.jsp" />
</body>
<script type="text/javascript">
    function addCart(){
        //将表单提交
        document.getElementById("formId").submit();
    }
</script>
</html>
